package org.springblade.modules.platform.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
public class PropertiesVO {

	@ApiModelProperty(value = "属性定义key")
	private String key;

	@ApiModelProperty(value = "属性定义name")
	private String name;

	@ApiModelProperty(value = "字段类型")
	private String type;

	@ApiModelProperty(value = "单位")
	private String unit;

	@ApiModelProperty(value = "枚举下拉框")
	private List<ElementsDTO> elements;

	@NoArgsConstructor
	@Data
	public static class ElementsDTO {

		@ApiModelProperty(value = "字段类型")
		private String key;
		@ApiModelProperty(value = "字段类型")
		private String value;
	}

	@ApiModelProperty(value = "子集")
	private List<PropertiesVO> list;
}
